package sctu.edu.java.year2016.team04.luoxinghua.day20160525.chapter7_3;

/**根据运行的形参的个数循环打印i值的次数。
 * Created by 落叶的思恋 on 2016/5/26.
 */
public class WorkFindi {
        public static void main(String[] args) {
            if (args.length == 0) {
                System.out.println("no extra parameters");
                return;
            }
            System.out.println("parameters:");
            for (int i = 0; i < args.length; i++) {
                System.out.println("parameter" + (i + 1) + "value is: " + args[i]);
            }
        }
    }

